﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Ranji_2017_Umlite
{
    class SystemFunction
    {
        public static void Set_Scale_Pos(Control mycontrol,double scale_width,double scale_height,double scale_left,double scale_top)
        {
            // 设定位置与大小
            mycontrol.Width = (int) (Welcome.rect.Width * scale_width);
            mycontrol.Height =(int)(Welcome.rect.Height * scale_height);
            mycontrol.Left = (int)(Welcome.rect.Width * scale_left);
            mycontrol.Top = (int)(Welcome.rect.Height * scale_top);
        }
    }
}
